package config

func GetMysqlConfig() map[string]string {
	conf := make(map[string]string)
	conf["DB_HOST"] = "127.0.0.1" // 127.0.0.1
	conf["DB_PORT"] = "1997"
	conf["DB_NAME"] = "my"
	conf["DB_USER"] = "my"
	conf["DB_PWD"] = "FAhZNJjTSRTLmtKL"
	conf["DB_CHARSET"] = "utf8mb4"
	conf["DB_TIMEOUT"] = "12s"

	conf["DB_MAX_OPEN_CONNS"] = "20"       // 连接池最大连接数
	conf["DB_MAX_IDLE_CONNS"] = "10"       // 连接池最大空闲数
	conf["DB_MAX_LIFETIME_CONNS"] = "7200" // 连接池链接最长生命周期

	return conf
}
